import { createApp } from 'vue'
import App from './App.vue'
import router from './router/router'
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';

import "./waves.css"
import directives from './directives/index.js'

// 自定义插件
import Message from "./plugin/CustomModel"
const app = createApp(App)
// 自定义指令
directives(app)

import { Request } from '@/server/http';
// import VueAxios from 'vue-axios'
// import axios from 'axios'

if (process.env.NODE_ENV === 'development') {
    const mock = require('../mock/index.js')
}
app.config.globalProperties.$http = Request.init() // 自定义添加

app.use(ElementPlus)
    .use(Message)
    .use(router)
    // .use(VueAxios, Request.init())
    .mount('#app')
    // https://www.php.cn/vuejs/469249.html